#pragma once

#define DXH_SAFE_DELETE(x)			if (x) { CM_DELETE x; x = 0; }
#define DXH_SAFE_DELETE_ARRAY(x)    if (x) { CM_DELETE[] x; x = 0; }

#define DXH_SAFE_RELEASE(x)         if ((x)) { (x)->Release(); (x) = NULL; }
